import service from "../utils/request"

// 删除报修工单
export const delRequest = (id: any) => {
  return service.delete(`/admin/repair/${id}`)
}

// 编辑报修工单
export const editRequest = (data: any) => {
  return service.put("/admin/repair/update", data)
}

// 分页查询报修工单
export const pageRequest = (query: any) => {
  return service.get("/admin/repair/list", {
    params: query,
  })
}

// 查询报修工单详情
export const getDetail = (id: number) => {
  return service.get(`/admin/repair/${id}`)
}